package com.xyh.controller;

import com.xyh.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * @Author:kyle
 * @Date:2020/12/10 - 16:52
 * @Project:spring_demo1
 * @Package:com.xyh.controller
 * @Version:1.0
 */
@Controller("userController")
public class UserController {

    @Autowired
    private UserService userService;

    public void list(){
        System.out.println("UserController中的list方法");
        userService.list();
    }
}
